/***************************************************************************
 *            screen.h
 *
 *  Mon Aug 25 16:43:22 2008
 *  Copyright  2008  Tiago Falcão
 *  <tiago@tiagofalcao.com>
 ****************************************************************************/

/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Library General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
 */
 
#ifndef SCREEN_H
#define SCREEN_H

#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include <time.h>
#include "camera.h"
#include "objects_3d.h"
#include "simple_objs.h"
#include "obj_model.h"

#ifndef true
#define true 1
#endif
#ifndef false
#define false 0
#endif

#ifndef GLUT_KEY_ESC
#define GLUT_KEY_ESC 27
#endif

//Inicialização da Tela
void screen(int x,int y,int w,int h,char * title);

//Funcao de Desenho
void display();

//Listener do Tamanho da Janela
void reshape_listener (GLsizei w, GLsizei h);

//Listener do Mouse
void mouse_listener(int button,int state,int x,int y);

//Listener do Scroll do Mouse
void mouse_wheel_listener(int wheel_number,int direction,int x,int y);

//Listener do Teclado
void key_listener(unsigned char key,int x,int y);

//Listener de Teclas Especiais
void special_key_listener(int key,int x,int y);

//Cria Menu
void create_menu();

//Listener do Menu Principal
void menu_listener(int value);

//Listener do Submenu de Selecao de Objetos
void submenu_obj_listener(int value);

//Configura Luz
void setup_light();

//Função de Saida
void end_program();

#endif /* SCREEN_H */

